package net.huashitong.ssydt.provider.exam.service;


import net.huashitong.ssydt.PaginationResult;
import net.huashitong.ssydt.exam.entity.SsExamPaperProduce;
import net.huashitong.ssydt.exam.entity.vo.SsExamPaperProduceQueryVO;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.10.11
 */
public interface SsExamPaperProduceService {

    int deleteByPrimaryKey(Long id);

    int insert(SsExamPaperProduce record);

    int insertSelective(SsExamPaperProduce record);

    SsExamPaperProduce selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsExamPaperProduce record);

    int updateByPrimaryKey(SsExamPaperProduce record);

    PaginationResult<SsExamPaperProduce> paginationQuery(SsExamPaperProduceQueryVO queryVO);

    /**
     * 根据记录规则匹配生成试卷
     *
     * @param id
     */
    void putProducePaper(Long id);

    void scheduledProducePaper();

    List<SsExamPaperProduce> findAllRandomOrder();

}
